<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;

use App\Http\Requests;

use App\Http\Controllers\Controller;

use DB;
class noticeController extends Controller
{
    //公告页面
    public function index(Request $request)
    {
        // 查找公告表信息且以发表时间降序
        $list = DB::table('storenotice')
            ->orderBy('updateTime','desc')
            ->paginate(2);
        return view('home.notice',['list' => $list]);
    } 
}
